﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Yes.Application.Comment.Dto
{
    public  class CommentAddDto
    {

        /// <summary>
        /// 文章ID
        /// </summary>
        public int ArticleId { get; set; }

        public int UserId { get; set; }

        /// <summary>
        /// 评论内容
        /// </summary>
        public string Content { get; set; }

        [Required]
        [RegularExpression(@"^[\u4e00-\u9fa5_a-zA-Z0-9]{2,10}$", ErrorMessage = "昵称只能包含中英文及数字，长度为2到10")]
        public string NickName { get; set; }

        public string Email { get; set; }

        public string Url { get; set; }
    }
}
